package me.zhengjie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import me.zhengjie.entity.TrafficCtlArea;
import me.zhengjie.mapper.TrafficCtlAreaMapper;
import me.zhengjie.service.TrafficCtlAreaService;
import org.springframework.stereotype.Service;

/**
* @author 86181
* @description 针对表【trafficctlarea】的数据库操作Service实现
* @createDate 2024-04-03 11:50:46
*/
@Service
public class TrafficCtlAreaServiceImpl extends ServiceImpl<TrafficCtlAreaMapper, TrafficCtlArea>
    implements TrafficCtlAreaService{

    private final TrafficCtlAreaMapper trafficCtlAreaMapper;

    public TrafficCtlAreaServiceImpl(TrafficCtlAreaMapper trafficCtlAreaMapper) {
        this.trafficCtlAreaMapper = trafficCtlAreaMapper;
    }

    @Override
    public TrafficCtlArea selectArea(TrafficCtlArea trafficCtlArea) {
        return this.trafficCtlAreaMapper.selectArea(trafficCtlArea);
    }

    @Override
    public boolean updateArea(TrafficCtlArea trafficCtlArea) {
        return this.trafficCtlAreaMapper.updateArea(trafficCtlArea) > 0;
    }
}




